﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Net.Common;

namespace Net.Logic
{
    class TestJson
    {
        public static void PrintData(NetData data)
        {
            Console.WriteLine(data.dataType + "  ");
            ProtocolBytes p = new ProtocolBytes(data.data);
            Console.WriteLine(p.GetFloat());
            //Console.WriteLine(p.GetBoolen());
            string a = p.GetString();
            Console.WriteLine(a.Length);
            Console.WriteLine(a);
        }
    }
}
